import 'package:flutter/material.dart';
import 'package:xin_nuo_pda/utils/string_extension.dart';
import 'package:xin_nuo_pda/values/colors.dart';

class TextView extends StatelessWidget {
  String _title;
  String _content;

  TextView(this._title, this._content);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 40,
      padding: EdgeInsets.fromLTRB(12, 0, 12, 0),
      margin: EdgeInsets.only(top: 1),
      color: Colors.white,
      child: Row(
        children: [
          Expanded(
            child: Text(
              "$_title",
              style: TextStyle(color: theme_blue.toColor()),
            ),
            flex: 3,
          ),
          Expanded(
            child: Text("$_content"),
            flex: 7,
          )
        ],
      ),
    );
  }
}
